package Task22;

import java.awt.EventQueue;

import javax.swing.JFrame;
import java.awt.Color;
import java.awt.Dialog.ModalExclusionType;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JList;
import javax.swing.JSplitPane;
import javax.swing.JToolBar;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JMenu;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.AbstractListModel;

public class GUI {

	private JFrame frmUntotalCommander;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					GUI window = new GUI();
					window.frmUntotalCommander.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public GUI() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmUntotalCommander = new JFrame();
		frmUntotalCommander.setTitle("UnTotal Commander");
		frmUntotalCommander.setModalExclusionType(ModalExclusionType.APPLICATION_EXCLUDE);
		frmUntotalCommander.setForeground(new Color(235, 233, 237));
		frmUntotalCommander.setFont(null);
		frmUntotalCommander.setBackground(new Color(235, 233, 237));
		frmUntotalCommander.setBounds(100, 100, 692, 531);
		frmUntotalCommander.getContentPane().setLayout(null);
		
		JButton btnNewButton = new JButton("\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440");
		btnNewButton.setBounds(0, 470, 105, 23);
		frmUntotalCommander.getContentPane().add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435");
		btnNewButton_1.setBounds(115, 470, 105, 23);
		frmUntotalCommander.getContentPane().add(btnNewButton_1);
		
		JButton button = new JButton("\u041F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0435");
		button.setBounds(230, 470, 105, 23);
		frmUntotalCommander.getContentPane().add(button);
		
		JButton button_1 = new JButton("\u041A\u0430\u0442\u0430\u043B\u043E\u0433");
		button_1.setBounds(345, 470, 105, 23);
		frmUntotalCommander.getContentPane().add(button_1);
		
		JButton button_2 = new JButton("\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435");
		button_2.setBounds(460, 470, 105, 23);
		frmUntotalCommander.getContentPane().add(button_2);
		
		JButton btnAltf = new JButton("Alt+F4 \u0412\u044B\u0445\u043E\u0434");
		btnAltf.setBounds(575, 470, 105, 23);
		frmUntotalCommander.getContentPane().add(btnAltf);
		
		textField = new JTextField();
		textField.setBounds(231, 439, 440, 20);
		frmUntotalCommander.getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel lblWorkdirectory = new JLabel("WorkDirectory>");
		lblWorkdirectory.setBounds(143, 442, 77, 14);
		frmUntotalCommander.getContentPane().add(lblWorkdirectory);
		
		JMenuBar menuBar = new JMenuBar();
		menuBar.setBounds(0, -1, 680, 28);
		frmUntotalCommander.getContentPane().add(menuBar);
		
		JMenu menu = new JMenu("\u0424\u0430\u0439\u043B\u044B");
		menuBar.add(menu);
		
		JMenuItem menuItem = new JMenuItem("\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0444\u0430\u0439\u043B");
		menu.add(menuItem);
		
		JMenuItem mntmNewMenuItem = new JMenuItem("\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C");
		menu.add(mntmNewMenuItem);
		
		JMenuItem mntmAltf = new JMenuItem("Alt+F4 \u0412\u044B\u0445\u043E\u0434");
		menu.add(mntmAltf);
		
		JMenu menu_2 = new JMenu("\u0418\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B");
		menuBar.add(menu_2);
		
		JMenuItem menuItem_2 = new JMenuItem("\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C");
		menu_2.add(menuItem_2);
		
		JMenuItem menuItem_3 = new JMenuItem("\u041F\u0435\u0440\u0435\u043C\u0435\u0441\u0442\u0438\u0442\u044C");
		menu_2.add(menuItem_3);
		
		JMenuItem menuItem_4 = new JMenuItem("\u0423\u0434\u0430\u043B\u0438\u0442\u044C");
		menu_2.add(menuItem_4);
		
		JMenuItem menuItem_5 = new JMenuItem("\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440");
		menu_2.add(menuItem_5);
		
		JMenu menu_1 = new JMenu("\u0421\u043F\u0440\u0430\u0432\u043A\u0430");
		menuBar.add(menu_1);
		
		JMenuItem mntmF = new JMenuItem("\u0421\u043E\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u0435 F1");
		menu_1.add(mntmF);
		
		JMenuItem menuItem_1 = new JMenuItem("\u041E\u0431 \u0430\u0432\u0442\u043E\u0440\u0435...");
		menu_1.add(menuItem_1);
		
		JMenuBar menuBar_1 = new JMenuBar();
		menuBar_1.setBounds(588, -1, 93, 21);
		frmUntotalCommander.getContentPane().add(menuBar_1);
		
		JMenuBar menuBar_2 = new JMenuBar();
		menuBar_2.setBounds(587, 0, 93, 21);
		frmUntotalCommander.getContentPane().add(menuBar_2);
		
		JMenuBar menuBar_3 = new JMenuBar();
		menuBar_3.setBounds(491, 0, 93, 21);
		frmUntotalCommander.getContentPane().add(menuBar_3);
		
		JList list = new JList();
		list.setModel(new AbstractListModel() {
			String[] values = new String[] {"[\u0432\u043E\u0437\u0432\u0440\u0430\u0442 \u043D\u0430 \u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044E \u0432\u044B\u0448\u0435]", "\u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F_1", "\u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F_2", "\u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F_3", "\u0438 \u0442.\u0434.", "\u0444\u0430\u0439\u043B_1", "\u0444\u0430\u0439\u043B_2", "\u0444\u0430\u0439\u043B_3", "\u0438 \u0442.\u0434."};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		list.setBounds(10, 56, 325, 372);
		frmUntotalCommander.getContentPane().add(list);
		
		JList list_1 = new JList();
		list_1.setModel(new AbstractListModel() {
			String[] values = new String[] {"[\u0432\u043E\u0437\u0432\u0440\u0430\u0442 \u043D\u0430 \u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044E \u0432\u044B\u0448\u0435]", "\u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F_1", "\u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F_2", "\u0434\u0438\u0440\u0435\u043A\u0442\u043E\u0440\u0438\u044F_3", "\u0438 \u0442.\u0434.", "\u0444\u0430\u0439\u043B_1", "\u0444\u0430\u0439\u043B_2", "\u0444\u0430\u0439\u043B_3", "\u0438 \u0442.\u0434."};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		list_1.setBounds(345, 57, 325, 371);
		frmUntotalCommander.getContentPane().add(list_1);
		
		JButton button_3 = new JButton("\u0421:\\");
		button_3.setBounds(10, 29, 47, 16);
		frmUntotalCommander.getContentPane().add(button_3);
		
		JButton btnD = new JButton("D:\\");
		btnD.setBounds(67, 29, 47, 16);
		frmUntotalCommander.getContentPane().add(btnD);
		
		JButton button_4 = new JButton("\u0421:\\");
		button_4.setBounds(345, 29, 47, 16);
		frmUntotalCommander.getContentPane().add(button_4);
		
		JButton button_5 = new JButton("D:\\");
		button_5.setBounds(402, 29, 47, 16);
		frmUntotalCommander.getContentPane().add(button_5);
	}
}
